class CreateUsuarios < ActiveRecord::Migration

  def self.up
    create_table :usuarios do |t|
      t.column :nome, :string
      t.column :login, :string
      t.column :senha, :string
      t.column :email, :string
      t.column :tipousuario_id, :integer
    end
  end

  def self.down
    drop_table :usuarios
  end

  Usuario.create(
    :nome => "Demostração",
    :login => "demo",
    :senha => "demo",
    :email => "demo@demo.com.br",
    :tipouario_id => "1"
  )
end
